// 首页api
import http from '../config';
// var querystring = require('querystring');
export default {
    // 获取轮播图
    getCarouselList(params) {
        return http.get(
            '/api/carousel/getCarouselList', {
                'params': params
            }
        );
    },
    //获取协会资讯 
    getAssociationFrontPage(params) {
        return http.get(
            '/api/associationNews/getFrontPage', {
                'params': params
            }
        );
    },
    //获取协会资讯详情 
    getAssociationDetail(params) {
        return http.get(
            '/api/associationNews/getFrontDetail', {
                'params': params
            }
        );
    },
    //获取会员资讯 
    getVipFrontPage(params) {
        return http.get(
            '/api/memberNews/getFrontPage', {
                'params': params
            }
        );
    },
    //获取会员资讯详情
    getVipDetail(params) {
        return http.get(
            '/api/memberNews/getFrontDetail', {
                'params': params
            }
        );
    },
    //获取会员名录 
    getMemberPage(params) {
        return http.get(
            '/api/member/getFrontPage', {
                'params': params
            }
        );
    },
    //获取会员名录详情
    getMemberDetail(params) {
        return http.get(
            '/api/member/getFrontDetail', {
                'params': params
            }
        );
    },
     //首页获取协会活动6个
     getActivityIndex(params) {
        return http.get(
            '/api/associationActivity/getFrontIndex', {
                'params': params
            }
        );
    },
    //获取协会活动分页
    getActivityPage(params) {
        return http.get(
            '/api/associationActivity/getFrontPage', {
                'params': params
            }
        );
    },

    // 协会活动推荐分页
    getFrontRecommend(params) {
        return http.get(
            '/api/associationActivity/getFrontRecommend', {
                'params': params
            }
        );
    },
    //获取协会活动详情
    getActivityDetail(params) {
        return http.get(
            '/api/associationActivity/getFrontDetail', {
                'params': params
            }
        );
    },
    // 协会党建分页
    getPartyPage(params) {
        return http.get(
            '/api/associationParty/getFrontPage', {
                'params': params
            }
        );
    },
    // 协会党建详情
    getPartyDetail(params) {
        return http.get(
            '/api/associationParty/getFrontDetail', {
                'params': params
            }
        );
    },
    // 分会资讯分页
    getBranchPage(params) {
        return http.get(
            '/api/branchNews/getFrontPage', {
                'params': params
            }
        );
    },
    // 分会资讯详情
    getBranchDetail(params) {
        return http.get(
            '/api/branchNews/getFrontDetail', {
                'params': params
            }
        );
    },
    // 关于我们
    getaboutUsDetail(params) {
        return http.get(
            '/api/aboutUs/getFrontDetail', {
                'params': params
            }
        );
    },
    // 协会服务
    getServiceDetail(params) {
        return http.get(
            '/api/associationService/getFrontDetail', {
                'params': params
            }
        );
    },
    //赋能服务列表
    getFrontList(params) {
        return http.get(
            '/api/serviceAbility/getFrontList', {
                'params': params
            }
        );
    },
    //赋能服务详情
    getServiceAbility(params) {
        return http.get(
            '/api/getServiceAbility', {
                'params': params
            }
        );
    },
    //项目直播分页
    getLiveRoomPage(params) {
        return http.get(
            '/api/liveRoom/getFrontPage', {
                'params': params
            }
        );
    }
    //项目直播详情

}